FROM 955466075186.dkr.ecr.cn-northwest-1.amazonaws.com.cn/ops-basic/inno-nginx:alpine

COPY . /usr/share/nginx/html

COPY ./nginx.conf /etc/nginx/

VOLUME /usr/share/nginx/html

USER root

# CMD ["mv /usr/share/nginx/html/help /usr/share/nginx/" ]


# FROM local-dtr.zhihuiya.com/inno/inno-base-static:1.1.0

# COPY . /usr/share/nginx/html

# VOLUME /usr/share/nginx/html

# WORKDIR /usr/share/nginx/html

# CMD bash ./s3-deploy.sh
COPY ./init.sh /opt/apps/

RUN chmod u+x /opt/apps/init.sh

ENTRYPOINT [ "bash",  "-c", "/opt/apps/init.sh"]
